package com.yndsoft.jc.utils;

import android.Manifest;

/**
 * Created by liuyang on 2016/12/6.
 */
public class ConstantValues {

    //测试地址
    private static final String TEST_URL = "http://10.1.36.221:8086/";                           //接口测试地址
    public static boolean isActive;//应用是否处于前台
    public static String APP_STATUS = "";//应用所处状态；
    public static final int REQUEST_CODE = 0;//请求码
    public static final String UMENG_CHANNEL = "UMENG_CHANNEL";

    public static int ADDRESS_REQUEST_CODE = 1001;
    public static int ADDRESS_ADD_NEW = 1002;
    public static int USERHEDER = 10003;//点击用户头像进去选图片界面的code
    public static final int PERMISSION_GRANTED = 3333;//标识权限授权
    public static final String PRODUCT_ID = "ProductId";
    public static final String ID_AD = "id";
    public static final String ABOUT_AD = "aboudID";
    public static final int SETTING_REQUEST = 1005;
    public static final int LOGIN_REQUEST = 1006;
    public static final int CHANGE_RECEIVE_ADDRESS = 1007;
    public static final String CONFIRM_ORDER = "confirmorder";
    public static final String EVALUATE_INTENT = "orderevaluate";

    //首页底部tab的index
    public static final int MAIN_NOW_INDEX = 0;
    public static final int MAIN_FINE_INDEX = 1;
    public static final int MAIN_HELP_INDEX = 2;
    public static final int MAIN_MY_INDEX = 3;

    public static final String[] PERMISSION_COMMENT = new String[]{
            Manifest.permission.WRITE_EXTERNAL_STORAGE,// 写入权限
            Manifest.permission.READ_EXTERNAL_STORAGE,  //读取权限
            Manifest.permission.CAMERA,//相机
            Manifest.permission.READ_PHONE_STATE
    };

    /**
     * 修改这个地址就可以了
     */
    private static final String baseUrl = TEST_URL;

    public static String getBaseUrl() {
        return baseUrl;
    }

    public enum AppStatus {
        AWAKE("awake"), REBIRTH("rebirth"), AWAKENED("awakened"), SLEEPING("sleeping"), FALLASLEEP("fallasleep");

        private String value;

        AppStatus(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }
    }

}
